﻿<div class="template1">

    <div ng-controller="MainCtrl1 as vm">
        <div ng-if="vm.loadingData.$$state.status === 0" style="margin:20px 0;font-size:2em">
            <strong>Loading...</strong>
        </div>
        <div ng-if="vm.loadingData.$$status.state !== 0">
            <form ng-submit="vm.onSubmit()" novalidate id="form1">
                <formly-form model="vm.model" fields="vm.fields" form="vm.form">
                <button type="sumbit" class="btn btn-primary submit-button" ng-disabled="vm.form.$invalid">Invia</button> <!-- ng-click="ok()" -->
                <button type="button" class="btn" onclick="Reset2()" >Reset</button>
                    <button type="button" class="btn" ng-click="vm.onReset()">Reset</button>
                </formly-form>
            </form>
        </div>
        <img id="img2" class="img-thumbnail" src="http://placehold.it/350x150/7ba9d0/fff?text=Select+an+image+%3A%29" style="width:auto;height:auto;max-width:350px;max-height:250px" />
    </div>

</div>

<script>

</script>
